package com.seadragon.apps.doctorcard.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.seadragon.apps.doctorcard.model.Chat;

public interface ChatRepository extends JpaRepository<Chat, Long> {
	List<Chat> findByChatNameIgnoreCase(String chatName);
	
	@Query("select c.uuid from Chat c")
	List<String> findAllUuid();
	
	Chat findByUuid(String uuid);
}